package org.csu.code.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Data
@Component
@TableName("cart")
public class Cart {
    @TableId
    private int userid;
    private int itemid;
    @TableField(value = "descn")
    private String description;
    @TableField(value = "in_stock")
    private int inStock;//是否有库存？
    private int quantity;
    @TableField(value = "list_price")
    private BigDecimal listPrice;
    @TableField(value = "total_price")
    private BigDecimal totalPrice;
}
